import request from '@/utils/request'

// 查询赛事管理列表
export function listRace(query) {
  return request({
    url: '/business/race/list',
    method: 'get',
    params: query
  })
}


// 查询赛事管理列表
export function manageList(query) {
  return request({
    url: '/business/race/manageList',
    method: 'get',
    params: query
  })
}



// 查询赛事管理详细
export function getRace(id) {
  return request({
    url: '/business/race/' + id,
    method: 'get'
  })
}

// 新增赛事管理
export function addRace(data) {
  return request({
    url: '/business/race',
    method: 'post',
    data: data
  })
}

// 修改赛事管理
export function updateRace(data) {
  return request({
    url: '/business/race',
    method: 'put',
    data: data
  })
}

// 删除赛事管理
export function delRace(id) {
  return request({
    url: '/business/race/' + id,
    method: 'delete'
  })
}
